#ifndef _VECTOR_H_
#define _VECTOR_H_

class MyVector3d 
{
public:
	MyVector3d() {};
	MyVector3d(double xx, double yy, double ww = 1.0) { x = xx; y = yy; w = ww;};
	MyVector3d crossproduct(const MyVector3d & v2);
	void operator=(const MyVector3d & v2);
	void normalize();
	double x, y,w;
};

double  D2(const MyVector3d& v1, const MyVector3d& v2);

#endif